import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/styles/index.scss'
import ElementUI from 'element-ui'
import '@/icons'
import * as echarts from 'echarts'
import '@/utils/flexible'
import '@/permission' // permission control
import Distpicker from 'v-distpicker'

import moment from 'moment'
import Print from 'vue-print-nb'

Vue.prototype.$moment = moment
Vue.component('v-distpicker', Distpicker)
Vue.use(Print)

Vue.use(ElementUI) // icon
Vue.mixin({
  mounted () {
    this.$echarts = echarts
  }
})

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
}).$mount('#app')
